package cn.com.homeyoda.aimate.aihealth.ui.health.adapter;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wzq.mvvmsmart.utils.GlideLoadUtils;

import java.util.ArrayList;
import java.util.List;

import cn.com.homeyoda.aimate.aihealth.R;
import cn.com.homeyoda.aimate.aihealth.bean.PopularListBean;

public class DailyKepuAdapter extends BaseQuickAdapter<PopularListBean.RowsBean, BaseViewHolder> {


    public DailyKepuAdapter(int layoutResId, @Nullable List<PopularListBean.RowsBean> data, Context context) {
        super(layoutResId, data);
        mContext = context;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, PopularListBean.RowsBean item) {
        helper.setText(R.id.tv_title, item.getTitle());
        GlideLoadUtils.loadRoundCornerImg(helper.getView(R.id.iv_banner), item.getCoverImage(), R.mipmap.ic_kepu1, 5);
    }

}
